"""
    在admin中注册模型
"""

from django.contrib import admin
from .models import User

# Register your models here.

# admin.site.register(User) # 简单注册

@admin.register(User)
class AuthorizationUserAdmin(admin.ModelAdmin):
    exclude = ['open_id'] # 表示 open_id 不在 admin 中展示
    pass